<!doctype html>



  


<html class="theme-next muse use-motion">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>



<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />












  
  
  <link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />




  
  
  
  

  
    
    
  

  

  

  
    
      
    

    
  

  

  
    
    
    <link href="//fonts.googleapis.com/css?family=Microsoft YaHei:300,300italic,400,400italic,700,700italic|consolas:300,300italic,400,400italic,700,700italic&subset=latin,latin-ext" rel="stylesheet" type="text/css">
  






<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.4.0" rel="stylesheet" type="text/css" />

<link href="/css/main.css?v=5.0.2" rel="stylesheet" type="text/css" />


  <meta name="keywords" content="CSS3,HTML5," />








  <link rel="shortcut icon" type="image/x-icon" href="http://ofy7k3v4s.bkt.clouddn.com/mylogo.png?v=5.0.2" />






<meta name="description" content="1&amp;#x3001;CSS3&amp;#x6709;&amp;#x54EA;&amp;#x4E9B;&amp;#x65B0;&amp;#x7279;&amp;#x6027;
CSS3&amp;#x5B9E;&amp;#x73B0;&amp;#x5706;&amp;#x89D2;&amp;#xFF08;border-radius&amp;#xFF09;&amp;#xFF0C;&amp;#x9634;&amp;#x5F71;&amp;#xFF08;box-shadow&amp;#xFF09;&amp;#xFF0C;&amp;#x5BF9;&amp;#x6587">
<meta property="og:type" content="article">
<meta property="og:title" content="题库-HTML5、CSS3">
<meta property="og:url" content="https://hongqinma.github.io/2015/08/01/e004-面试题库-HTML5、CSS3/index.html">
<meta property="og:site_name" content="HongqinMa' Blog">
<meta property="og:description" content="1&amp;#x3001;CSS3&amp;#x6709;&amp;#x54EA;&amp;#x4E9B;&amp;#x65B0;&amp;#x7279;&amp;#x6027;
CSS3&amp;#x5B9E;&amp;#x73B0;&amp;#x5706;&amp;#x89D2;&amp;#xFF08;border-radius&amp;#xFF09;&amp;#xFF0C;&amp;#x9634;&amp;#x5F71;&amp;#xFF08;box-shadow&amp;#xFF09;&amp;#xFF0C;&amp;#x5BF9;&amp;#x6587">
<meta property="og:updated_time" content="2016-12-09T02:50:58.143Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="题库-HTML5、CSS3">
<meta name="twitter:description" content="1&amp;#x3001;CSS3&amp;#x6709;&amp;#x54EA;&amp;#x4E9B;&amp;#x65B0;&amp;#x7279;&amp;#x6027;
CSS3&amp;#x5B9E;&amp;#x73B0;&amp;#x5706;&amp;#x89D2;&amp;#xFF08;border-radius&amp;#xFF09;&amp;#xFF0C;&amp;#x9634;&amp;#x5F71;&amp;#xFF08;box-shadow&amp;#xFF09;&amp;#xFF0C;&amp;#x5BF9;&amp;#x6587">



<script type="text/javascript" id="hexo.configuration">
  var NexT = window.NexT || {};
  var CONFIG = {
    scheme: 'Muse',
    sidebar: {"position":"left","display":"post"},
    fancybox: true,
    motion: true,
    duoshuo: {
      userId: '6347850919329138000',
      author: 'Hiraku'
    }
  };
</script>




  <link rel="canonical" href="https://hongqinma.github.io/2015/08/01/e004-面试题库-HTML5、CSS3/"/>


  <title> 题库-HTML5、CSS3 | HongqinMa' Blog </title>
</head>

<body itemscope itemtype="//schema.org/WebPage" lang="en">

  



  <script type="text/javascript">
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "//hm.baidu.com/hm.js?10010323";
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
  </script>








  
  
    
  

  <div class="container one-collumn sidebar-position-left page-post-detail ">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="//schema.org/WPHeader">
      <div class="header-inner"><div class="site-meta custom-logo">
  
    <div class="site-meta-headline">
      <a>
        <img class="custom-logo-image" src="http://ofy7k3v4s.bkt.clouddn.com/photo.jpg"
             alt="HongqinMa' Blog"/>
      </a>
    </div>
  

  <div class="custom-logo-site-title">
    <a href="/"  class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <span class="site-title">HongqinMa' Blog</span>
      <span class="logo-line-after"><i></i></span>
    </a>
  </div>
  <p class="site-subtitle">Spell at all costs， to rush you in the future。</p>
</div>

<div class="site-nav-toggle">
  <button>
    <span class="btn-bar"></span>
    <span class="btn-bar"></span>
    <span class="btn-bar"></span>
  </button>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br />
            
            Home
          </a>
        </li>
      
        
        <li class="menu-item menu-item-categories">
          <a href="/categories" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-th"></i> <br />
            
            Categories
          </a>
        </li>
      
        
        <li class="menu-item menu-item-about">
          <a href="/about" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-user"></i> <br />
            
            About
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/archives" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br />
            
            Archives
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/tags" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-tags"></i> <br />
            
            Tags
          </a>
        </li>
      

      
    </ul>
  

  
</nav>

 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  
  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="//schema.org/Article">

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                题库-HTML5、CSS3
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            <span class="post-meta-item-icon">
              <i class="fa fa-calendar-o"></i>
            </span>
            <span class="post-meta-item-text">Posted on</span>
            <time itemprop="dateCreated" datetime="2015-08-01T22:29:05+08:00" content="2015-08-01">
              2015-08-01
            </time>
          </span>

          
            <span class="post-category" >
              &nbsp; | &nbsp;
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">In</span>
              
                <span itemprop="about" itemscope itemtype="https://schema.org/Thing">
                  <a href="/categories/经典题库/" itemprop="url" rel="index">
                    <span itemprop="name">经典题库</span>
                  </a>
                </span>

                
                

              
            </span>
          

          
            
              <span class="post-comments-count">
                &nbsp; | &nbsp;
                <a href="/2015/08/01/e004-面试题库-HTML5、CSS3/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count ds-thread-count" data-thread-key="2015/08/01/e004-面试题库-HTML5、CSS3/" itemprop="commentsCount"></span>
                </a>
              </span>
            
          

          

          

          
              &nbsp; | &nbsp;
              <span class="page-pv"><i class="fa fa-file-o"></i>
              <span class="busuanzi-value" id="busuanzi_value_page_pv" ></span>
              </span>
          

          
            <span id="busuanzi_container_page_pv">  <span id="busuanzi_value_page_pv"></span> Views</span>
          
        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        <h2 id="1&#x3001;CSS3&#x6709;&#x54EA;&#x4E9B;&#x65B0;&#x7279;&#x6027;"><a href="#1&#x3001;CSS3&#x6709;&#x54EA;&#x4E9B;&#x65B0;&#x7279;&#x6027;" class="headerlink" title="1&#x3001;CSS3&#x6709;&#x54EA;&#x4E9B;&#x65B0;&#x7279;&#x6027;"></a>1&#x3001;CSS3&#x6709;&#x54EA;&#x4E9B;&#x65B0;&#x7279;&#x6027;</h2><blockquote>
<p>CSS3&#x5B9E;&#x73B0;&#x5706;&#x89D2;&#xFF08;border-radius&#xFF09;&#xFF0C;&#x9634;&#x5F71;&#xFF08;box-shadow&#xFF09;&#xFF0C;<br>&#x5BF9;&#x6587;&#x5B57;&#x52A0;&#x7279;&#x6548;&#xFF08;text-shadow&#x3001;&#xFF09;&#xFF0C;&#x7EBF;&#x6027;&#x6E10;&#x53D8;&#xFF08;gradient&#xFF09;&#xFF0C;&#x65CB;&#x8F6C;&#xFF08;transform&#xFF09;<br>transform:rotate(9deg) scale(0.85,0.90) translate(0px,-30px) skew(-9deg,0deg);// &#x65CB;&#x8F6C;,&#x7F29;&#x653E;,&#x5B9A;&#x4F4D;,&#x503E;&#x659C;<br>&#x589E;&#x52A0;&#x4E86;&#x66F4;&#x591A;&#x7684;CSS&#x9009;&#x62E9;&#x5668;<br>&#x591A;&#x80CC;&#x666F;<br>rgba&#x3001;hlsa<br>&#x5728;CSS3&#x4E2D;&#x552F;&#x4E00;&#x5F15;&#x5165;&#x7684;&#x4F2A;&#x5143;&#x7D20;&#x662F; ::selection.<br>&#x5A92;&#x4F53;&#x67E5;&#x8BE2;&#xFF0C;&#x591A;&#x680F;&#x5E03;&#x5C40;<br>border-image</p>
</blockquote>
<h2 id="2&#x3001;html5&#x6709;&#x54EA;&#x4E9B;&#x65B0;&#x7279;&#x6027;&#x3001;&#x79FB;&#x9664;&#x4E86;&#x90A3;&#x4E9B;&#x5143;&#x7D20;&#xFF1F;"><a href="#2&#x3001;html5&#x6709;&#x54EA;&#x4E9B;&#x65B0;&#x7279;&#x6027;&#x3001;&#x79FB;&#x9664;&#x4E86;&#x90A3;&#x4E9B;&#x5143;&#x7D20;&#xFF1F;" class="headerlink" title="2&#x3001;html5&#x6709;&#x54EA;&#x4E9B;&#x65B0;&#x7279;&#x6027;&#x3001;&#x79FB;&#x9664;&#x4E86;&#x90A3;&#x4E9B;&#x5143;&#x7D20;&#xFF1F;"></a>2&#x3001;html5&#x6709;&#x54EA;&#x4E9B;&#x65B0;&#x7279;&#x6027;&#x3001;&#x79FB;&#x9664;&#x4E86;&#x90A3;&#x4E9B;&#x5143;&#x7D20;&#xFF1F;</h2><blockquote>
<p>&#x5982;&#x4F55;&#x5904;&#x7406;HTML5&#x65B0;&#x6807;&#x7B7E;&#x7684;&#x6D4F;&#x89C8;&#x5668;&#x517C;&#x5BB9;&#x95EE;&#x9898;&#xFF1F;&#x5982;&#x4F55;&#x533A;&#x5206; HTML &#x548C; HTML5&#xFF1F;</p>
</blockquote>
<p>&#x65B0;&#x7279;&#x6027;&#xFF1A;</p>
<blockquote>
<p>&#x62D6;&#x62FD;&#x91CA;&#x653E;(Drag and drop) API<br>&#x8BED;&#x4E49;&#x5316;&#x66F4;&#x597D;&#x7684;&#x5185;&#x5BB9;&#x6807;&#x7B7E;&#xFF08;header, nav, footer, aside, article, section&#xFF09;<br>&#x97F3;&#x9891;&#x3001;&#x89C6;&#x9891; API(audio,video)<br>&#x753B;&#x5E03;(Canvas) API<br>&#x5730;&#x7406;(Geolocation) API<br>&#x672C;&#x5730;&#x79BB;&#x7EBF;&#x5B58;&#x50A8; localStorage &#x957F;&#x671F;&#x5B58;&#x50A8;&#x6570;&#x636E;&#xFF0C;&#x6D4F;&#x89C8;&#x5668;&#x5173;&#x95ED;&#x540E;&#x6570;&#x636E;&#x4E0D;&#x4E22;&#x5931;&#xFF1B;<br>sessionStorage &#x7684;&#x6570;&#x636E;&#x5728;&#x6D4F;&#x89C8;&#x5668;&#x5173;&#x95ED;&#x540E;&#x81EA;&#x52A8;&#x5220;&#x9664;<br>&#x8868;&#x5355;&#x63A7;&#x4EF6;&#xFF0C;calendar&#x3001;date&#x3001;time&#x3001;email&#x3001;url&#x3001;search<br>&#x65B0;&#x7684;&#x6280;&#x672F; webworker, websocket, Geolocation</p>
</blockquote>
<p>&#x79FB;&#x9664;&#x7684;&#x5143;&#x7D20;&#xFF1A;</p>
<blockquote>
<p>&#x7EAF;&#x8868;&#x73B0;&#x7684;&#x5143;&#x7D20;&#xFF1A;basefont&#xFF0C;big&#xFF0C;center&#xFF0C;font, s&#xFF0C;strike&#xFF0C;tt&#xFF0C;u&#xFF1B;<br>&#x5BF9;&#x53EF;&#x7528;&#x6027;&#x4EA7;&#x751F;&#x8D1F;&#x9762;&#x5F71;&#x54CD;&#x7684;&#x5143;&#x7D20;&#xFF1A;frame&#xFF0C;frameset&#xFF0C;noframes&#xFF1B;</p>
</blockquote>
<p>&#x652F;&#x6301;HTML5&#x65B0;&#x6807;&#x7B7E;&#xFF1A;</p>
<blockquote>
<p>IE8/IE7/IE6&#x652F;&#x6301;&#x901A;&#x8FC7; document.createElement &#x65B9;&#x6CD5;&#x4EA7;&#x751F;&#x7684;&#x6807;&#x7B7E;&#xFF0C;<br>&#x53EF;&#x4EE5;&#x5229;&#x7528;&#x8FD9;&#x4E00;&#x7279;&#x6027;&#x8BA9;&#x8FD9;&#x4E9B;&#x6D4F;&#x89C8;&#x5668;&#x652F;&#x6301; HTML5 &#x65B0;&#x6807;&#x7B7E;&#xFF0C;&#x6D4F;&#x89C8;&#x5668;&#x652F;&#x6301;&#x65B0;&#x6807;&#x7B7E;&#x540E;&#xFF0C;<br>&#x8FD8;&#x9700;&#x8981;&#x6DFB;&#x52A0;&#x6807;&#x7B7E;&#x9ED8;&#x8BA4;&#x7684;&#x6837;&#x5F0F;&#xFF08;&#x5F53;&#x7136;&#x6700;&#x597D;&#x7684;&#x65B9;&#x5F0F;&#x662F;&#x76F4;&#x63A5;&#x4F7F;&#x7528;&#x6210;&#x719F;&#x7684;&#x6846;&#x67B6;&#x3001;&#x4F7F;&#x7528;&#x6700;&#x591A;&#x7684;&#x662F;html5shim&#x6846;&#x67B6;&#xFF09;&#xFF1A;</p>
</blockquote>
<figure class="highlight html"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div></pre></td><td class="code"><pre><div class="line"><span class="comment">&lt;!--[if lt IE 9]&gt;</span></div><div class="line">&lt;script&gt; src=&quot;http://html5shim.googlecode.com/svn/trunk/html5.js&quot;&lt;/script&gt;</div><div class="line">&lt;![endif]--&gt;</div></pre></td></tr></table></figure>
<p>&#x5982;&#x4F55;&#x533A;&#x5206;&#xFF1A;DOCTYPE&#x58F0;&#x660E;&#x65B0;&#x589E;&#x7684;&#x7ED3;&#x6784;&#x5143;&#x7D20;&#x3001;&#x529F;&#x80FD;&#x5143;&#x7D20;</p>
<h2 id="3&#x3001;&#x672C;&#x5730;&#x5B58;&#x50A8;&#xFF08;Local-Storage-&#xFF09;&#x548C;-cookies&#xFF08;&#x50A8;&#x5B58;&#x5728;&#x7528;&#x6237;&#x672C;&#x5730;&#x7EC8;&#x7AEF;&#x4E0A;&#x7684;&#x6570;&#x636E;&#xFF09;&#x4E4B;&#x95F4;&#x7684;&#x533A;&#x522B;"><a href="#3&#x3001;&#x672C;&#x5730;&#x5B58;&#x50A8;&#xFF08;Local-Storage-&#xFF09;&#x548C;-cookies&#xFF08;&#x50A8;&#x5B58;&#x5728;&#x7528;&#x6237;&#x672C;&#x5730;&#x7EC8;&#x7AEF;&#x4E0A;&#x7684;&#x6570;&#x636E;&#xFF09;&#x4E4B;&#x95F4;&#x7684;&#x533A;&#x522B;" class="headerlink" title="3&#x3001;&#x672C;&#x5730;&#x5B58;&#x50A8;&#xFF08;Local Storage &#xFF09;&#x548C; cookies&#xFF08;&#x50A8;&#x5B58;&#x5728;&#x7528;&#x6237;&#x672C;&#x5730;&#x7EC8;&#x7AEF;&#x4E0A;&#x7684;&#x6570;&#x636E;&#xFF09;&#x4E4B;&#x95F4;&#x7684;&#x533A;&#x522B;"></a>3&#x3001;&#x672C;&#x5730;&#x5B58;&#x50A8;&#xFF08;Local Storage &#xFF09;&#x548C; cookies&#xFF08;&#x50A8;&#x5B58;&#x5728;&#x7528;&#x6237;&#x672C;&#x5730;&#x7EC8;&#x7AEF;&#x4E0A;&#x7684;&#x6570;&#x636E;&#xFF09;&#x4E4B;&#x95F4;&#x7684;&#x533A;&#x522B;</h2><blockquote>
<p>Cookies: &#x670D;&#x52A1;&#x5668;&#x548C;&#x5BA2;&#x6237;&#x7AEF;&#x90FD;&#x53EF;&#x4EE5;&#x8BBF;&#x95EE;&#xFF1B;&#x5927;&#x5C0F;&#x53EA;&#x6709; 4KB &#x5DE6;&#x53F3;&#xFF1B;&#x6709;&#x6709;&#x6548;&#x671F;&#xFF0C;&#x8FC7;&#x671F;&#x540E;&#x5C06;&#x4F1A;&#x5220;&#x9664;&#xFF1B;<br>&#x672C;&#x5730;&#x5B58;&#x50A8;&#xFF1A;&#x53EA;&#x6709;&#x672C;&#x5730;&#x6D4F;&#x89C8;&#x5668;&#x7AEF;&#x53EF;&#x8BBF;&#x95EE;&#x6570;&#x636E;&#xFF0C;<br>&#x670D;&#x52A1;&#x5668;&#x4E0D;&#x80FD;&#x8BBF;&#x95EE;&#x672C;&#x5730;&#x5B58;&#x50A8;&#x76F4;&#x5230;&#x6545;&#x610F;&#x901A;&#x8FC7; POST &#x6216;&#x8005; GET &#x7684;&#x901A;&#x9053;&#x53D1;&#x9001;&#x5230;&#x670D;&#x52A1;&#x5668;&#xFF1B;&#x6BCF;&#x4E2A;&#x57DF; 5MB &#xFF1B;<br>&#x6CA1;&#x6709;&#x8FC7;&#x671F;&#x6570;&#x636E;&#xFF0C;&#x5B83;&#x5C06;&#x4FDD;&#x7559;&#x77E5;&#x9053;&#x7528;&#x6237;&#x4ECE;&#x6D4F;&#x89C8;&#x5668;&#x6E05;&#x9664;&#x6216;&#x8005;&#x4F7F;&#x7528; JavaScript &#x4EE3;&#x7801;&#x79FB;&#x9664;</p>
</blockquote>
<h2 id="4&#x3001;&#x5982;&#x4F55;&#x5B9E;&#x73B0;&#x6D4F;&#x89C8;&#x5668;&#x5185;&#x591A;&#x4E2A;&#x6807;&#x7B7E;&#x9875;&#x4E4B;&#x95F4;&#x7684;&#x901A;&#x4FE1;"><a href="#4&#x3001;&#x5982;&#x4F55;&#x5B9E;&#x73B0;&#x6D4F;&#x89C8;&#x5668;&#x5185;&#x591A;&#x4E2A;&#x6807;&#x7B7E;&#x9875;&#x4E4B;&#x95F4;&#x7684;&#x901A;&#x4FE1;" class="headerlink" title="4&#x3001;&#x5982;&#x4F55;&#x5B9E;&#x73B0;&#x6D4F;&#x89C8;&#x5668;&#x5185;&#x591A;&#x4E2A;&#x6807;&#x7B7E;&#x9875;&#x4E4B;&#x95F4;&#x7684;&#x901A;&#x4FE1;"></a>4&#x3001;&#x5982;&#x4F55;&#x5B9E;&#x73B0;&#x6D4F;&#x89C8;&#x5668;&#x5185;&#x591A;&#x4E2A;&#x6807;&#x7B7E;&#x9875;&#x4E4B;&#x95F4;&#x7684;&#x901A;&#x4FE1;</h2><p>&#x8C03;&#x7528; localstorge&#x3001;cookies &#x7B49;&#x672C;&#x5730;&#x5B58;&#x50A8;&#x65B9;&#x5F0F;</p>
<h2 id="5&#x3001;&#x5982;&#x4F55;&#x5BF9;&#x7F51;&#x7AD9;&#x7684;&#x6587;&#x4EF6;&#x548C;&#x8D44;&#x6E90;&#x8FDB;&#x884C;&#x4F18;&#x5316;"><a href="#5&#x3001;&#x5982;&#x4F55;&#x5BF9;&#x7F51;&#x7AD9;&#x7684;&#x6587;&#x4EF6;&#x548C;&#x8D44;&#x6E90;&#x8FDB;&#x884C;&#x4F18;&#x5316;" class="headerlink" title="5&#x3001;&#x5982;&#x4F55;&#x5BF9;&#x7F51;&#x7AD9;&#x7684;&#x6587;&#x4EF6;&#x548C;&#x8D44;&#x6E90;&#x8FDB;&#x884C;&#x4F18;&#x5316;"></a>5&#x3001;&#x5982;&#x4F55;&#x5BF9;&#x7F51;&#x7AD9;&#x7684;&#x6587;&#x4EF6;&#x548C;&#x8D44;&#x6E90;&#x8FDB;&#x884C;&#x4F18;&#x5316;</h2><blockquote>
<p>&#x6587;&#x4EF6;&#x5408;&#x5E76;<br>&#x6587;&#x4EF6;&#x6700;&#x5C0F;&#x5316;/&#x6587;&#x4EF6;&#x538B;&#x7F29;<br>&#x4F7F;&#x7528;CDN&#x6258;&#x7BA1;<br>&#x7F13;&#x5B58;&#x7684;&#x4F7F;&#x7528;</p>
</blockquote>
<h2 id="6&#x3001;&#x4EC0;&#x4E48;&#x662F;&#x54CD;&#x5E94;&#x5F0F;&#x8BBE;&#x8BA1;&#xFF1F;"><a href="#6&#x3001;&#x4EC0;&#x4E48;&#x662F;&#x54CD;&#x5E94;&#x5F0F;&#x8BBE;&#x8BA1;&#xFF1F;" class="headerlink" title="6&#x3001;&#x4EC0;&#x4E48;&#x662F;&#x54CD;&#x5E94;&#x5F0F;&#x8BBE;&#x8BA1;&#xFF1F;"></a>6&#x3001;&#x4EC0;&#x4E48;&#x662F;&#x54CD;&#x5E94;&#x5F0F;&#x8BBE;&#x8BA1;&#xFF1F;</h2><blockquote>
<p>&#x5B83;&#x662F;&#x5173;&#x4E8E;&#x7F51;&#x9875;&#x5236;&#x4F5C;&#x7684;&#x8FC7;&#x7A0B;&#x4E2D;&#x8BA9;&#x4E0D;&#x540C;&#x7684;&#x8BBE;&#x5907;&#x6709;&#x4E0D;&#x540C;&#x7684;&#x5C3A;&#x5BF8;&#x548C;&#x4E0D;&#x540C;&#x7684;&#x529F;&#x80FD;&#x3002;&#x54CD;&#x5E94;&#x5F0F;&#x8BBE;&#x8BA1;&#x662F;&#x8BA9;&#x6240;&#x6709;&#x7684;&#x4EBA;&#x80FD;&#x5728;&#x8FD9;&#x4E9B;&#x8BBE;&#x5907;&#x4E0A;&#x8BA9;&#x7F51;&#x7AD9;&#x8FD0;&#x884C;&#x6B63;&#x5E38;  </p>
</blockquote>
<h2 id="7&#x3001;&#x65B0;&#x7684;-HTML5-&#x6587;&#x6863;&#x7C7B;&#x578B;&#x548C;&#x5B57;&#x7B26;&#x96C6;&#x662F;&#xFF1F;"><a href="#7&#x3001;&#x65B0;&#x7684;-HTML5-&#x6587;&#x6863;&#x7C7B;&#x578B;&#x548C;&#x5B57;&#x7B26;&#x96C6;&#x662F;&#xFF1F;" class="headerlink" title="7&#x3001;&#x65B0;&#x7684; HTML5 &#x6587;&#x6863;&#x7C7B;&#x578B;&#x548C;&#x5B57;&#x7B26;&#x96C6;&#x662F;&#xFF1F;"></a>7&#x3001;&#x65B0;&#x7684; HTML5 &#x6587;&#x6863;&#x7C7B;&#x578B;&#x548C;&#x5B57;&#x7B26;&#x96C6;&#x662F;&#xFF1F;</h2><blockquote>
<p>HTML5&#x6587;&#x6863;&#x7C7B;&#x578B;&#xFF1A;<code>&lt;!doctype html&gt;</code><br>HTML5&#x4F7F;&#x7528;&#x7684;&#x7F16;&#x7801;: <code>&lt;meta charset=&#x201D;UTF-8&#x201D;&gt;</code></p>
</blockquote>
<h2 id="8&#x3001;HTML5-Canvas-&#x5143;&#x7D20;&#x6709;&#x4EC0;&#x4E48;&#x7528;"><a href="#8&#x3001;HTML5-Canvas-&#x5143;&#x7D20;&#x6709;&#x4EC0;&#x4E48;&#x7528;" class="headerlink" title="8&#x3001;HTML5 Canvas &#x5143;&#x7D20;&#x6709;&#x4EC0;&#x4E48;&#x7528;"></a>8&#x3001;HTML5 Canvas &#x5143;&#x7D20;&#x6709;&#x4EC0;&#x4E48;&#x7528;</h2><blockquote>
<p>Canvas &#x5143;&#x7D20;&#x7528;&#x4E8E;&#x5728;&#x7F51;&#x9875;&#x4E0A;&#x7ED8;&#x5236;&#x56FE;&#x5F62;&#xFF0C;&#x8BE5;&#x5143;&#x7D20;&#x6807;&#x7B7E;&#x5F3A;&#x5927;&#x4E4B;&#x5904;&#x5728;&#x4E8E;&#x53EF;&#x4EE5;&#x76F4;&#x63A5;&#x5728; HTML &#x4E0A;&#x8FDB;&#x884C;&#x56FE;&#x5F62;&#x64CD;&#x4F5C;&#x3002;</p>
</blockquote>
<h2 id="9&#x3001;HTML5-&#x5B58;&#x50A8;&#x7C7B;&#x578B;&#x6709;&#x4EC0;&#x4E48;&#x533A;&#x522B;"><a href="#9&#x3001;HTML5-&#x5B58;&#x50A8;&#x7C7B;&#x578B;&#x6709;&#x4EC0;&#x4E48;&#x533A;&#x522B;" class="headerlink" title="9&#x3001;HTML5 &#x5B58;&#x50A8;&#x7C7B;&#x578B;&#x6709;&#x4EC0;&#x4E48;&#x533A;&#x522B;"></a>9&#x3001;HTML5 &#x5B58;&#x50A8;&#x7C7B;&#x578B;&#x6709;&#x4EC0;&#x4E48;&#x533A;&#x522B;</h2><blockquote>
<p>Media API<br>Text Track API<br>Application Cache API<br>User Interaction<br>Data Transfer API<br>Command API<br>Constraint Validation API<br>History API</p>
</blockquote>
<h2 id="10&#x3001;&#x7528;-H5-CSS3-&#x89E3;&#x51B3;&#x5BFC;&#x822A;&#x680F;&#x6700;&#x540E;&#x4E00;&#x9879;&#x6389;&#x4E0B;&#x6765;&#x7684;&#x95EE;&#x9898;"><a href="#10&#x3001;&#x7528;-H5-CSS3-&#x89E3;&#x51B3;&#x5BFC;&#x822A;&#x680F;&#x6700;&#x540E;&#x4E00;&#x9879;&#x6389;&#x4E0B;&#x6765;&#x7684;&#x95EE;&#x9898;" class="headerlink" title="10&#x3001;&#x7528; H5+CSS3 &#x89E3;&#x51B3;&#x5BFC;&#x822A;&#x680F;&#x6700;&#x540E;&#x4E00;&#x9879;&#x6389;&#x4E0B;&#x6765;&#x7684;&#x95EE;&#x9898;"></a>10&#x3001;&#x7528; H5+CSS3 &#x89E3;&#x51B3;&#x5BFC;&#x822A;&#x680F;&#x6700;&#x540E;&#x4E00;&#x9879;&#x6389;&#x4E0B;&#x6765;&#x7684;&#x95EE;&#x9898;</h2><h2 id="11&#x3001;CSS3&#x65B0;&#x589E;&#x4F2A;&#x7C7B;&#x6709;&#x90A3;&#x4E9B;"><a href="#11&#x3001;CSS3&#x65B0;&#x589E;&#x4F2A;&#x7C7B;&#x6709;&#x90A3;&#x4E9B;" class="headerlink" title="11&#x3001;CSS3&#x65B0;&#x589E;&#x4F2A;&#x7C7B;&#x6709;&#x90A3;&#x4E9B;"></a>11&#x3001;CSS3&#x65B0;&#x589E;&#x4F2A;&#x7C7B;&#x6709;&#x90A3;&#x4E9B;</h2><blockquote>
<p>p:first-of-type &#x9009;&#x62E9;&#x5C5E;&#x4E8E;&#x5176;&#x7236;&#x5143;&#x7D20;&#x7684;&#x9996;&#x4E2A; <code>&lt;p&gt;</code> &#x5143;&#x7D20;&#x7684;&#x6BCF;&#x4E2A; <code>&lt;p&gt;</code> &#x5143;&#x7D20;&#x3002;<br>p:last-of-type  &#x9009;&#x62E9;&#x5C5E;&#x4E8E;&#x5176;&#x7236;&#x5143;&#x7D20;&#x7684;&#x6700;&#x540E; <code>&lt;p&gt;</code> &#x5143;&#x7D20;&#x7684;&#x6BCF;&#x4E2A; <code>&lt;p&gt;</code> &#x5143;&#x7D20;&#x3002;<br>p:only-of-type  &#x9009;&#x62E9;&#x5C5E;&#x4E8E;&#x5176;&#x7236;&#x5143;&#x7D20;&#x552F;&#x4E00;&#x7684; <code>&lt;p&gt;</code> &#x5143;&#x7D20;&#x7684;&#x6BCF;&#x4E2A; <code>&lt;p&gt;</code> &#x5143;&#x7D20;&#x3002;<br>p:only-child    &#x9009;&#x62E9;&#x5C5E;&#x4E8E;&#x5176;&#x7236;&#x5143;&#x7D20;&#x7684;&#x552F;&#x4E00;&#x5B50;&#x5143;&#x7D20;&#x7684;&#x6BCF;&#x4E2A; <code>&lt;p&gt;</code> &#x5143;&#x7D20;&#x3002;<br>p:nth-child(2)  &#x9009;&#x62E9;&#x5C5E;&#x4E8E;&#x5176;&#x7236;&#x5143;&#x7D20;&#x7684;&#x7B2C;&#x4E8C;&#x4E2A;&#x5B50;&#x5143;&#x7D20;&#x7684;&#x6BCF;&#x4E2A; <code>&lt;p&gt;</code> &#x5143;&#x7D20;&#x3002;<br>:enabled&#x3001;:disabled &#x63A7;&#x5236;&#x8868;&#x5355;&#x63A7;&#x4EF6;&#x7684;&#x7981;&#x7528;&#x72B6;&#x6001;&#x3002;<br>:checked&#xFF0C;&#x5355;&#x9009;&#x6846;&#x6216;&#x590D;&#x9009;&#x6846;&#x88AB;&#x9009;&#x4E2D;&#x3002;</p>
</blockquote>
<h2 id="12&#x3001;&#x4F60;&#x600E;&#x4E48;&#x6765;&#x5B9E;&#x73B0;&#x9875;&#x9762;&#x8BBE;&#x8BA1;&#x56FE;&#xFF0C;&#x4F60;&#x8BA4;&#x4E3A;&#x524D;&#x7AEF;&#x5E94;&#x8BE5;&#x5982;&#x4F55;&#x9AD8;&#x8D28;&#x91CF;&#x5B8C;&#x6210;&#x5DE5;&#x4F5C;-&#x4E00;&#x4E2A;&#x6EE1;&#x5C4F;&#x54C1;&#x5B57;&#x5E03;&#x5C40;-&#x5982;&#x4F55;&#x8BBE;&#x8BA1;"><a href="#12&#x3001;&#x4F60;&#x600E;&#x4E48;&#x6765;&#x5B9E;&#x73B0;&#x9875;&#x9762;&#x8BBE;&#x8BA1;&#x56FE;&#xFF0C;&#x4F60;&#x8BA4;&#x4E3A;&#x524D;&#x7AEF;&#x5E94;&#x8BE5;&#x5982;&#x4F55;&#x9AD8;&#x8D28;&#x91CF;&#x5B8C;&#x6210;&#x5DE5;&#x4F5C;-&#x4E00;&#x4E2A;&#x6EE1;&#x5C4F;&#x54C1;&#x5B57;&#x5E03;&#x5C40;-&#x5982;&#x4F55;&#x8BBE;&#x8BA1;" class="headerlink" title="12&#x3001;&#x4F60;&#x600E;&#x4E48;&#x6765;&#x5B9E;&#x73B0;&#x9875;&#x9762;&#x8BBE;&#x8BA1;&#x56FE;&#xFF0C;&#x4F60;&#x8BA4;&#x4E3A;&#x524D;&#x7AEF;&#x5E94;&#x8BE5;&#x5982;&#x4F55;&#x9AD8;&#x8D28;&#x91CF;&#x5B8C;&#x6210;&#x5DE5;&#x4F5C;? &#x4E00;&#x4E2A;&#x6EE1;&#x5C4F;&#x54C1;&#x5B57;&#x5E03;&#x5C40; &#x5982;&#x4F55;&#x8BBE;&#x8BA1;"></a>12&#x3001;&#x4F60;&#x600E;&#x4E48;&#x6765;&#x5B9E;&#x73B0;&#x9875;&#x9762;&#x8BBE;&#x8BA1;&#x56FE;&#xFF0C;&#x4F60;&#x8BA4;&#x4E3A;&#x524D;&#x7AEF;&#x5E94;&#x8BE5;&#x5982;&#x4F55;&#x9AD8;&#x8D28;&#x91CF;&#x5B8C;&#x6210;&#x5DE5;&#x4F5C;? &#x4E00;&#x4E2A;&#x6EE1;&#x5C4F;&#x54C1;&#x5B57;&#x5E03;&#x5C40; &#x5982;&#x4F55;&#x8BBE;&#x8BA1;</h2><blockquote>
<p>&#x9996;&#x5148;&#x5212;&#x5206;&#x6210;&#x5934;&#x90E8;&#x3001;body&#x3001;&#x811A;&#x90E8;&#xFF1B;&#x3002;&#x3002;&#x3002;&#x3002;&#x3002;<br>&#x5B9E;&#x73B0;&#x6548;&#x679C;&#x56FE;&#x662F;&#x6700;&#x57FA;&#x672C;&#x7684;&#x5DE5;&#x4F5C;&#xFF0C;&#x7CBE;&#x786E;&#x5230;2px&#xFF1B;<br>&#x4E0E;&#x8BBE;&#x8BA1;&#x5E08;&#xFF0C;&#x4EA7;&#x54C1;&#x7ECF;&#x7406;&#x7684;&#x6C9F;&#x901A;&#x548C;&#x9879;&#x76EE;&#x7684;&#x53C2;&#x4E0E;<br>&#x505A;&#x597D;&#x7684;&#x9875;&#x9762;&#x7ED3;&#x6784;&#xFF0C;&#x9875;&#x9762;&#x91CD;&#x6784;&#x548C;&#x7528;&#x6237;&#x4F53;&#x9A8C;<br>&#x5904;&#x7406;hack&#xFF0C;&#x517C;&#x5BB9;&#x3001;&#x5199;&#x51FA;&#x4F18;&#x7F8E;&#x7684;&#x4EE3;&#x7801;&#x683C;&#x5F0F;<br>&#x9488;&#x5BF9;&#x670D;&#x52A1;&#x5668;&#x7684;&#x4F18;&#x5316;&#x3001;&#x62E5;&#x62B1; HTML5&#x3002;</p>
</blockquote>
<h2 id="13&#x3001;&#x4E3A;&#x4EC0;&#x4E48;&#x5229;&#x7528;&#x591A;&#x4E2A;&#x57DF;&#x540D;&#x6765;&#x5B58;&#x50A8;&#x7F51;&#x7AD9;&#x8D44;&#x6E90;&#x4F1A;&#x66F4;&#x6709;&#x6548;"><a href="#13&#x3001;&#x4E3A;&#x4EC0;&#x4E48;&#x5229;&#x7528;&#x591A;&#x4E2A;&#x57DF;&#x540D;&#x6765;&#x5B58;&#x50A8;&#x7F51;&#x7AD9;&#x8D44;&#x6E90;&#x4F1A;&#x66F4;&#x6709;&#x6548;" class="headerlink" title="13&#x3001;&#x4E3A;&#x4EC0;&#x4E48;&#x5229;&#x7528;&#x591A;&#x4E2A;&#x57DF;&#x540D;&#x6765;&#x5B58;&#x50A8;&#x7F51;&#x7AD9;&#x8D44;&#x6E90;&#x4F1A;&#x66F4;&#x6709;&#x6548;"></a>13&#x3001;&#x4E3A;&#x4EC0;&#x4E48;&#x5229;&#x7528;&#x591A;&#x4E2A;&#x57DF;&#x540D;&#x6765;&#x5B58;&#x50A8;&#x7F51;&#x7AD9;&#x8D44;&#x6E90;&#x4F1A;&#x66F4;&#x6709;&#x6548;</h2><blockquote>
<p>CDN&#x7F13;&#x5B58;&#x66F4;&#x65B9;&#x4FBF;<br>&#x7A81;&#x7834;&#x6D4F;&#x89C8;&#x5668;&#x5E76;&#x53D1;&#x9650;&#x5236;<br>&#x8282;&#x7EA6;cookie&#x5E26;&#x5BBD;<br>&#x8282;&#x7EA6;&#x4E3B;&#x57DF;&#x540D;&#x7684;&#x8FDE;&#x63A5;&#x6570;&#xFF0C;&#x4F18;&#x5316;&#x9875;&#x9762;&#x54CD;&#x5E94;&#x901F;&#x5EA6;<br>&#x9632;&#x6B62;&#x4E0D;&#x5FC5;&#x8981;&#x7684;&#x5B89;&#x5168;&#x95EE;&#x9898;</p>
</blockquote>
<h2 id="14&#x3001;&#x77E5;&#x9053;css&#x6709;&#x4E2A;content&#x5C5E;&#x6027;&#x5417;&#xFF1F;&#x6709;&#x4EC0;&#x4E48;&#x4F5C;&#x7528;&#xFF1F;&#x6709;&#x4EC0;&#x4E48;&#x5E94;&#x7528;&#xFF1F;"><a href="#14&#x3001;&#x77E5;&#x9053;css&#x6709;&#x4E2A;content&#x5C5E;&#x6027;&#x5417;&#xFF1F;&#x6709;&#x4EC0;&#x4E48;&#x4F5C;&#x7528;&#xFF1F;&#x6709;&#x4EC0;&#x4E48;&#x5E94;&#x7528;&#xFF1F;" class="headerlink" title="14&#x3001;&#x77E5;&#x9053;css&#x6709;&#x4E2A;content&#x5C5E;&#x6027;&#x5417;&#xFF1F;&#x6709;&#x4EC0;&#x4E48;&#x4F5C;&#x7528;&#xFF1F;&#x6709;&#x4EC0;&#x4E48;&#x5E94;&#x7528;&#xFF1F;"></a>14&#x3001;&#x77E5;&#x9053;css&#x6709;&#x4E2A;content&#x5C5E;&#x6027;&#x5417;&#xFF1F;&#x6709;&#x4EC0;&#x4E48;&#x4F5C;&#x7528;&#xFF1F;&#x6709;&#x4EC0;&#x4E48;&#x5E94;&#x7528;&#xFF1F;</h2><p>css&#x7684;content&#x5C5E;&#x6027;&#x4E13;&#x95E8;&#x5E94;&#x7528;&#x5728; before/after &#x4F2A;&#x5143;&#x7D20;&#x4E0A;&#xFF0C;&#x7528;&#x6765;&#x63D2;&#x5165;&#x751F;&#x6210;&#x5185;&#x5BB9;&#x3002;&#x6700;&#x5E38;&#x89C1;&#x7684;&#x5E94;&#x7528;&#x662F;&#x5229;&#x7528;&#x4F2A;&#x7C7B;&#x6E05;&#x9664;&#x6D6E;&#x52A8;&#x3002;</p>
<figure class="highlight"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div></pre></td><td class="code"><pre><div class="line">/* &#x4E00;&#x79CD;&#x5E38;&#x89C1;&#x5229;&#x7528;&#x4F2A;&#x7C7B;&#x6E05;&#x9664;&#x6D6E;&#x52A8;&#x7684;&#x4EE3;&#x7801; */</div><div class="line">.clearfix:after {</div><div class="line">  content: &quot;.&quot;; /* &#x8FD9;&#x91CC;&#x5229;&#x7528;&#x5230;&#x4E86;content&#x5C5E;&#x6027; */</div><div class="line">  display: block; </div><div class="line">  height: 0;</div><div class="line">  visibility: hidden; </div><div class="line">  clear: both; </div><div class="line">}</div><div class="line">.clearfix { </div><div class="line">  *zoom: 1; </div><div class="line">}</div></pre></td></tr></table></figure>
<p>after&#x4F2A;&#x5143;&#x7D20;&#x901A;&#x8FC7; content &#x5728;&#x5143;&#x7D20;&#x7684;&#x540E;&#x9762;&#x751F;&#x6210;&#x4E86;&#x5185;&#x5BB9;&#x4E3A;&#x4E00;&#x4E2A;&#x70B9;&#x7684;&#x5757;&#x7EA7;&#x7D20;&#xFF0C;&#x518D;&#x5229;&#x7528; clear:both &#x6E05;&#x9664;&#x6D6E;&#x52A8;&#x3002;</p>
<p>&#x77E5;&#x9053;css&#x8BA1;&#x6570;&#x5668;&#xFF08;&#x5E8F;&#x5217;&#x6570;&#x5B57;&#x5B57;&#x7B26;&#x81EA;&#x52A8;&#x9012;&#x589E;&#xFF09;&#x5417;&#xFF1F;&#x5982;&#x4F55;&#x901A;&#x8FC7; css content &#x5C5E;&#x6027;&#x5B9E;&#x73B0; css &#x8BA1;&#x6570;&#x5668;&#xFF1F;</p>
<blockquote>
<p>css&#x8BA1;&#x6570;&#x5668;&#x662F;&#x901A;&#x8FC7;&#x8BBE;&#x7F6E; counter-reset &#x3001;counter-increment &#x4E24;&#x4E2A;&#x5C5E;&#x6027; &#x3001;&#x53CA; counter()/counters()&#x4E00;&#x4E2A;&#x65B9;&#x6CD5;&#x914D;&#x5408;after / before &#x4F2A;&#x7C7B;&#x5B9E;&#x73B0;&#x3002; </p>
</blockquote>
<h2 id="15&#x3001;&#x5982;&#x4F55;&#x5728;-HTML5-&#x9875;&#x9762;&#x4E2D;&#x5D4C;&#x5165;&#x97F3;&#x9891;"><a href="#15&#x3001;&#x5982;&#x4F55;&#x5728;-HTML5-&#x9875;&#x9762;&#x4E2D;&#x5D4C;&#x5165;&#x97F3;&#x9891;" class="headerlink" title="15&#x3001;&#x5982;&#x4F55;&#x5728; HTML5 &#x9875;&#x9762;&#x4E2D;&#x5D4C;&#x5165;&#x97F3;&#x9891;"></a>15&#x3001;&#x5982;&#x4F55;&#x5728; HTML5 &#x9875;&#x9762;&#x4E2D;&#x5D4C;&#x5165;&#x97F3;&#x9891;</h2><p>HTML 5 &#x5305;&#x542B;&#x5D4C;&#x5165;&#x97F3;&#x9891;&#x6587;&#x4EF6;&#x7684;&#x6807;&#x51C6;&#x65B9;&#x5F0F;&#xFF0C;&#x652F;&#x6301;&#x7684;&#x683C;&#x5F0F;&#x5305;&#x62EC; MP3&#x3001;Wav &#x548C; Ogg&#xFF1A;</p>
<figure class="highlight html"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div></pre></td><td class="code"><pre><div class="line"><span class="tag">&lt;<span class="name">audio</span> <span class="attr">controls</span>&gt;</span> </div><div class="line">  <span class="tag">&lt;<span class="name">source</span> <span class="attr">src</span>=<span class="string">&quot;jamshed.mp3&quot;</span> <span class="attr">type</span>=<span class="string">&quot;audio/mpeg&quot;</span>&gt;</span> </div><div class="line">   Your browser does&apos;nt support audio embedding feature. </div><div class="line"><span class="tag">&lt;/<span class="name">audio</span>&gt;</span></div></pre></td></tr></table></figure>
<h2 id="16&#x3001;&#x5982;&#x4F55;&#x5728;-HTML5-&#x9875;&#x9762;&#x4E2D;&#x5D4C;&#x5165;&#x89C6;&#x9891;&#xFF1F;"><a href="#16&#x3001;&#x5982;&#x4F55;&#x5728;-HTML5-&#x9875;&#x9762;&#x4E2D;&#x5D4C;&#x5165;&#x89C6;&#x9891;&#xFF1F;" class="headerlink" title="16&#x3001;&#x5982;&#x4F55;&#x5728; HTML5 &#x9875;&#x9762;&#x4E2D;&#x5D4C;&#x5165;&#x89C6;&#x9891;&#xFF1F;"></a>16&#x3001;&#x5982;&#x4F55;&#x5728; HTML5 &#x9875;&#x9762;&#x4E2D;&#x5D4C;&#x5165;&#x89C6;&#x9891;&#xFF1F;</h2><p>&#x548C;&#x97F3;&#x9891;&#x4E00;&#x6837;&#xFF0C;HTML5 &#x5B9A;&#x4E49;&#x4E86;&#x5D4C;&#x5165;&#x89C6;&#x9891;&#x7684;&#x6807;&#x51C6;&#x65B9;&#x6CD5;&#xFF0C;&#x652F;&#x6301;&#x7684;&#x683C;&#x5F0F;&#x5305;&#x62EC;&#xFF1A;MP4&#x3001;WebM &#x548C; Ogg&#xFF1A;</p>
<figure class="highlight html"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div></pre></td><td class="code"><pre><div class="line"><span class="tag">&lt;<span class="name">video</span> <span class="attr">width</span>=<span class="string">&quot;450&quot;</span> <span class="attr">height</span>=<span class="string">&quot;340&quot;</span> <span class="attr">controls</span>&gt;</span> </div><div class="line">  <span class="tag">&lt;<span class="name">source</span> <span class="attr">src</span>=<span class="string">&quot;jamshed.mp4&quot;</span> <span class="attr">type</span>=<span class="string">&quot;video/mp4&quot;</span>&gt;</span> </div><div class="line">   Your browser does&apos;nt support video embedding feature. </div><div class="line"><span class="tag">&lt;/<span class="name">video</span>&gt;</span></div></pre></td></tr></table></figure>
<h2 id="17&#x3001;HTML5-&#x5F15;&#x5165;&#x4EC0;&#x4E48;&#x65B0;&#x7684;&#x8868;&#x5355;&#x5C5E;&#x6027;"><a href="#17&#x3001;HTML5-&#x5F15;&#x5165;&#x4EC0;&#x4E48;&#x65B0;&#x7684;&#x8868;&#x5355;&#x5C5E;&#x6027;" class="headerlink" title="17&#x3001;HTML5 &#x5F15;&#x5165;&#x4EC0;&#x4E48;&#x65B0;&#x7684;&#x8868;&#x5355;&#x5C5E;&#x6027;"></a>17&#x3001;HTML5 &#x5F15;&#x5165;&#x4EC0;&#x4E48;&#x65B0;&#x7684;&#x8868;&#x5355;&#x5C5E;&#x6027;</h2><blockquote>
<p>Datalist<br>datetime<br>output<br>keygen<br>date<br>month<br>week<br>time<br>number<br>range<br>emailurl</p>
</blockquote>
<h2 id="18&#x3001;&#x63CF;&#x8FF0;&#x4E00;&#x6BB5;&#x8BED;&#x4E49;&#x7684;html&#x4EE3;&#x7801;"><a href="#18&#x3001;&#x63CF;&#x8FF0;&#x4E00;&#x6BB5;&#x8BED;&#x4E49;&#x7684;html&#x4EE3;&#x7801;" class="headerlink" title="18&#x3001;&#x63CF;&#x8FF0;&#x4E00;&#x6BB5;&#x8BED;&#x4E49;&#x7684;html&#x4EE3;&#x7801;"></a>18&#x3001;&#x63CF;&#x8FF0;&#x4E00;&#x6BB5;&#x8BED;&#x4E49;&#x7684;html&#x4EE3;&#x7801;</h2><p>&#xFF08;HTML5&#x4E2D;&#x65B0;&#x589E;&#x52A0;&#x7684;&#x5F88;&#x591A;&#x6807;&#x7B7E;&#xFF08;&#x5982;&#xFF1A;<code>&lt;article&gt;</code>&#x3001;<code>&lt;nav&gt;</code>&#x3001;<code>&lt;header&gt;</code>&#x548C;<code>&lt;footer&gt;</code>&#x7B49;&#xFF0C;&#x5C31;&#x662F;&#x57FA;&#x4E8E;&#x8BED;&#x4E49;&#x5316;&#x8BBE;&#x8BA1;&#x539F;&#x5219;&#xFF09;  </p>
<figure class="highlight html"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div></pre></td><td class="code"><pre><div class="line"><span class="tag">&lt;<span class="name">div</span> <span class="attr">id</span>=<span class="string">&quot;header&quot;</span>&gt;</span></div><div class="line"><span class="tag">&lt;<span class="name">h1</span>&gt;</span>&#x6807;&#x9898;<span class="tag">&lt; /<span class="attr">h1</span>&gt;</span></div><div class="line"><span class="tag">&lt;<span class="name">h2</span>&gt;</span>&#x4E13;&#x6CE8;Web&#x524D;&#x7AEF;&#x6280;&#x672F;<span class="tag">&lt; /<span class="attr">h2</span>&gt;</span></div><div class="line"><span class="tag">&lt;/<span class="name">div</span>&gt;</span></div></pre></td></tr></table></figure>
<p>&#x8BED;&#x4E49; HTML &#x5177;&#x6709;&#x4EE5;&#x4E0B;&#x7279;&#x6027;&#xFF1A;</p>
<blockquote>
<p>&#x6587;&#x5B57;&#x5305;&#x88F9;&#x5728;&#x5143;&#x7D20;&#x4E2D;&#xFF0C;&#x7528;&#x4EE5;&#x53CD;&#x6620;&#x5185;&#x5BB9;&#x3002;&#x4F8B;&#x5982;&#xFF1A;<br>&#x6BB5;&#x843D;&#x5305;&#x542B;&#x5728; <code>&lt;p&gt;</code> &#x5143;&#x7D20;&#x4E2D;&#x3002;<br>&#x987A;&#x5E8F;&#x8868;&#x5305;&#x542B;&#x5728;<code>&lt;ol&gt;</code>&#x5143;&#x7D20;&#x4E2D;&#x3002;<br>&#x4ECE;&#x5176;&#x4ED6;&#x6765;&#x6E90;&#x5F15;&#x7528;&#x7684;&#x5927;&#x578B;&#x6587;&#x5B57;&#x5757;&#x5305;&#x542B;&#x5728;<code>&lt;blockquote&gt;</code>&#x5143;&#x7D20;&#x4E2D;&#x3002;<br>HTML &#x5143;&#x7D20;&#x4E0D;&#x80FD;&#x7528;&#x4F5C;&#x8BED;&#x4E49;&#x7528;&#x9014;&#x4EE5;&#x5916;&#x7684;&#x5176;&#x4ED6;&#x76EE;&#x7684;&#x3002;&#x4F8B;&#x5982;&#xFF1A;<br><code>&lt;h1&gt;</code>&#x5305;&#x542B;&#x6807;&#x9898;&#xFF0C;&#x4F46;&#x5E76;&#x975E;&#x7528;&#x4E8E;&#x653E;&#x5927;&#x6587;&#x672C;&#x3002;<br><code>&lt;blockquote&gt;</code>&#x5305;&#x542B;&#x5927;&#x6BB5;&#x5F15;&#x8FF0;&#xFF0C;&#x4F46;&#x5E76;&#x975E;&#x7528;&#x4E8E;&#x6587;&#x672C;&#x7F29;&#x8FDB;&#x3002;<br>&#x7A7A;&#x767D;&#x6BB5;&#x843D;&#x5143;&#x7D20; ( <code>&lt;p&gt;&lt;/p&gt;</code> ) &#x5E76;&#x975E;&#x7528;&#x4E8E;&#x8DF3;&#x884C;&#x3002;<br>&#x6587;&#x672C;&#x5E76;&#x4E0D;&#x76F4;&#x63A5;&#x5305;&#x542B;&#x4EFB;&#x4F55;&#x6837;&#x5F0F;&#x4FE1;&#x606F;&#x3002;&#x4F8B;&#x5982;&#xFF1A;<br>&#x4E0D;&#x4F7F;&#x7528; <code>&lt;font&gt;</code> &#x6216;<code>&lt;center&gt;</code> &#x7B49;&#x683C;&#x5F0F;&#x6807;&#x8BB0;&#x3002;<br>&#x7C7B;&#x6216; ID &#x4E2D;&#x4E0D;&#x5F15;&#x7528;&#x989C;&#x8272;&#x6216;&#x4F4D;&#x7F6E;&#x3002;</p>
</blockquote>
<h2 id="19&#x3001;HTML5&#x548C;CSS3&#x7684;&#x65B0;&#x6807;&#x7B7E;"><a href="#19&#x3001;HTML5&#x548C;CSS3&#x7684;&#x65B0;&#x6807;&#x7B7E;" class="headerlink" title="19&#x3001;HTML5&#x548C;CSS3&#x7684;&#x65B0;&#x6807;&#x7B7E;"></a>19&#x3001;HTML5&#x548C;CSS3&#x7684;&#x65B0;&#x6807;&#x7B7E;</h2><blockquote>
<p>HTML5&#xFF1A; nav, footer, header, section, hgroup, video, time, canvas, audio&#x2026;<br>CSS3: RGBA, opacity, text-shadow, box-shadow, border-radius, border-image, border-color, transform&#x2026;;</p>
</blockquote>

      
    </div>

    <div>
      
        

      
    </div>

    <div>
      
        
  <div style="padding: 10px 0; margin: 20px auto; width: 90%; text-align: center;">
    <div>感谢您的支持！</div>
    <button id="rewardButton" disable="enable" onclick="var qr = document.getElementById('QR'); if (qr.style.display === 'none') {qr.style.display='block';} else {qr.style.display='none'}">
      <span>打 赏</span>
    </button>
    <div id="QR" style="display: none;">
      
        <div id="wechat" style="display: inline-block">
          <img id="wechat_qr" src="http://ofy7k3v4s.bkt.clouddn.com/wcpayCode.jpg" alt="Hongqin Ma WeChat Pay"/>
          <p>微信打赏</p>
        </div>
      
      
        <div id="alipay" style="display: inline-block">
          <img id="alipay_qr" src="http://ofy7k3v4s.bkt.clouddn.com/apayCode.jpg" alt="Hongqin Ma Alipay"/>
          <p>支付宝打赏</p>
        </div>
      
    </div>
  </div>


      
    </div>

    <footer class="post-footer">
      
        <div class="post-tags">
          
            <a href="/tags/CSS3/" rel="tag">#CSS3</a>
          
            <a href="/tags/HTML5/" rel="tag">#HTML5</a>
          
        </div>
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/2015/07/26/e003-面试题库-js-基础（下）/" rel="next" title="题库-js 基础（下）">
                <i class="fa fa-chevron-left"></i> 题库-js 基础（下）
              </a>
            
          </div>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/2015/08/03/e005-面试题库-Ajax/" rel="prev" title="题库-Ajax">
                题库-Ajax <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </article>



    <div class="post-spread">
      
        <div class="ds-share flat" data-thread-key="2015/08/01/e004-面试题库-HTML5、CSS3/"
     data-title="题库-HTML5、CSS3"
     data-content=""
     data-url="https://hongqinma.github.io/2015/08/01/e004-面试题库-HTML5、CSS3/">
  <div class="ds-share-inline">
    <ul  class="ds-share-icons-16">

      <li data-toggle="ds-share-icons-more"><a class="ds-more" href="javascript:void(0);">分享到：</a></li>
      <li><a class="ds-weibo" href="javascript:void(0);" data-service="weibo">微博</a></li>
      <li><a class="ds-qzone" href="javascript:void(0);" data-service="qzone">QQ空间</a></li>
      <li><a class="ds-qqt" href="javascript:void(0);" data-service="qqt">腾讯微博</a></li>
      <li><a class="ds-wechat" href="javascript:void(0);" data-service="wechat">微信</a></li>

    </ul>
    <div class="ds-share-icons-more">
    </div>
  </div>
</div>
      
    </div>
  </div>


          </div>
          


          
  <div class="comments" id="comments">
    
      <div class="ds-thread" data-thread-key="2015/08/01/e004-面试题库-HTML5、CSS3/"
           data-title="题库-HTML5、CSS3" data-url="https://hongqinma.github.io/2015/08/01/e004-面试题库-HTML5、CSS3/">
      </div>
    
  </div>


        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap" >
            Table of Contents
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview">
            Overview
          </li>
        </ul>
      

      <section class="site-overview sidebar-panel ">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="//schema.org/Person">
          <img class="site-author-image" itemprop="image"
               src="/images/photo.jpg"
               alt="Hongqin Ma" />
          <p class="site-author-name" itemprop="name">Hongqin Ma</p>
          <p class="site-description motion-element" itemprop="description">Spell at all costs， to rush you in the future. </p>
        </div>
        <nav class="site-state motion-element">
          <div class="site-state-item site-state-posts">
            <a href="/archives">
              <span class="site-state-item-count">68</span>
              <span class="site-state-item-name">posts</span>
            </a>
          </div>

          
            <div class="site-state-item site-state-categories">
              <a href="/categories">
                <span class="site-state-item-count">16</span>
                <span class="site-state-item-name">categories</span>
              </a>
            </div>
          

          
            <div class="site-state-item site-state-tags">
              <a href="/tags">
                <span class="site-state-item-count">57</span>
                <span class="site-state-item-name">tags</span>
              </a>
            </div>
          

        </nav>

        

        <div class="links-of-author motion-element">
          
            
              <span class="links-of-author-item">
                <a href="https://github.com/HongqinMa" target="_blank" title="GitHub">
                  
                    <i class="fa fa-fw fa-github"></i>
                  
                  GitHub
                </a>
              </span>
            
              <span class="links-of-author-item">
                <a href="https://twitter.com/HongqinMa" target="_blank" title="Twitter">
                  
                    <i class="fa fa-fw fa-twitter"></i>
                  
                  Twitter
                </a>
              </span>
            
              <span class="links-of-author-item">
                <a href="https://www.facebook.com/profile.php?id=100006581058735" target="_blank" title="Facebook">
                  
                    <i class="fa fa-fw fa-facebook"></i>
                  
                  Facebook
                </a>
              </span>
            
              <span class="links-of-author-item">
                <a href="http://www.zhihu.com/people/HirakuMa" target="_blank" title="知乎">
                  
                    <i class="fa fa-fw fa-share-alt"></i>
                  
                  知乎
                </a>
              </span>
            
          
        </div>

        
        

        
        
          <div class="links-of-blogroll motion-element links-of-blogroll-inline">
            <div class="links-of-blogroll-title">
              <i class="fa  fa-fw fa-globe"></i>
              Links
            </div>
            <ul class="links-of-blogroll-list">
              
                <li class="links-of-blogroll-item">
                  <a href="http://www.cnblogs.com/rubylouvre/" title="司徒正美" target="_blank">司徒正美</a>
                </li>
              
                <li class="links-of-blogroll-item">
                  <a href="http://www.cnblogs.com/sanshi/" title="三生石上" target="_blank">三生石上</a>
                </li>
              
                <li class="links-of-blogroll-item">
                  <a href="http://www.cnblogs.com/TomXu/" title="汤姆大叔" target="_blank">汤姆大叔</a>
                </li>
              
                <li class="links-of-blogroll-item">
                  <a href="http://gold.xitu.io/" title="掘金" target="_blank">掘金</a>
                </li>
              
                <li class="links-of-blogroll-item">
                  <a href="https://segmentfault.com/" title="segmentfault" target="_blank">segmentfault</a>
                </li>
              
                <li class="links-of-blogroll-item">
                  <a href="http://www.jianshu.com/users/1cbb94e5ed4d/latest_articles" title="简书" target="_blank">简书</a>
                </li>
              
                <li class="links-of-blogroll-item">
                  <a href="https://home.cnblogs.com/" title="博客园" target="_blank">博客园</a>
                </li>
              
                <li class="links-of-blogroll-item">
                  <a href="https://www.awesomes.cn/" title="Awesomes" target="_blank">Awesomes</a>
                </li>
              
            </ul>
          </div>
        

      </section>

      
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">
            
              
            
            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#1、CSS3有哪些新特性"><span class="nav-number">1.</span> <span class="nav-text">1、CSS3有哪些新特性</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#2、html5有哪些新特性、移除了那些元素？"><span class="nav-number">2.</span> <span class="nav-text">2、html5有哪些新特性、移除了那些元素？</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#3、本地存储（Local-Storage-）和-cookies（储存在用户本地终端上的数据）之间的区别"><span class="nav-number">3.</span> <span class="nav-text">3、本地存储（Local Storage ）和 cookies（储存在用户本地终端上的数据）之间的区别</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#4、如何实现浏览器内多个标签页之间的通信"><span class="nav-number">4.</span> <span class="nav-text">4、如何实现浏览器内多个标签页之间的通信</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#5、如何对网站的文件和资源进行优化"><span class="nav-number">5.</span> <span class="nav-text">5、如何对网站的文件和资源进行优化</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#6、什么是响应式设计？"><span class="nav-number">6.</span> <span class="nav-text">6、什么是响应式设计？</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#7、新的-HTML5-文档类型和字符集是？"><span class="nav-number">7.</span> <span class="nav-text">7、新的 HTML5 文档类型和字符集是？</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#8、HTML5-Canvas-元素有什么用"><span class="nav-number">8.</span> <span class="nav-text">8、HTML5 Canvas 元素有什么用</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#9、HTML5-存储类型有什么区别"><span class="nav-number">9.</span> <span class="nav-text">9、HTML5 存储类型有什么区别</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#10、用-H5-CSS3-解决导航栏最后一项掉下来的问题"><span class="nav-number">10.</span> <span class="nav-text">10、用 H5+CSS3 解决导航栏最后一项掉下来的问题</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#11、CSS3新增伪类有那些"><span class="nav-number">11.</span> <span class="nav-text">11、CSS3新增伪类有那些</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#12、你怎么来实现页面设计图，你认为前端应该如何高质量完成工作-一个满屏品字布局-如何设计"><span class="nav-number">12.</span> <span class="nav-text">12、你怎么来实现页面设计图，你认为前端应该如何高质量完成工作? 一个满屏品字布局 如何设计</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#13、为什么利用多个域名来存储网站资源会更有效"><span class="nav-number">13.</span> <span class="nav-text">13、为什么利用多个域名来存储网站资源会更有效</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#14、知道css有个content属性吗？有什么作用？有什么应用？"><span class="nav-number">14.</span> <span class="nav-text">14、知道css有个content属性吗？有什么作用？有什么应用？</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#15、如何在-HTML5-页面中嵌入音频"><span class="nav-number">15.</span> <span class="nav-text">15、如何在 HTML5 页面中嵌入音频</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#16、如何在-HTML5-页面中嵌入视频？"><span class="nav-number">16.</span> <span class="nav-text">16、如何在 HTML5 页面中嵌入视频？</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#17、HTML5-引入什么新的表单属性"><span class="nav-number">17.</span> <span class="nav-text">17、HTML5 引入什么新的表单属性</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#18、描述一段语义的html代码"><span class="nav-number">18.</span> <span class="nav-text">18、描述一段语义的html代码</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#19、HTML5和CSS3的新标签"><span class="nav-number">19.</span> <span class="nav-text">19、HTML5和CSS3的新标签</span></a></li></ol></div>
            
          </div>
        </section>
      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright" >
  
  &copy; 
  <span itemprop="copyrightYear">2016</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Hongqin Ma</span>
</div>

<div class="powered-by">
  Powered by <a class="theme-link" href="https://hexo.io">Hexo</a>
</div>

<div class="theme-info">
  Theme -
  <a class="theme-link" href="https://github.com/iissnan/hexo-theme-next">
    NexT.Muse
  </a>
</div>

<script async src="https://dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script>
<span id="busuanzi_container_site_pv">
    &nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;Page Views: <span id="busuanzi_value_site_pv"></span> 
</span>

        

<div class="busuanzi-count">

  <script async src="https://dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script>

  
    <span class="site-uv"><i class="fa fa-user"></i><span class="busuanzi-value" id="busuanzi_value_site_uv"></span></span>
  

  
    <span class="site-pv"><i class="fa fa-eye"></i><span class="busuanzi-value" id="busuanzi_value_site_pv"></span></span>
  
  
</div>



        
      </div>
    </footer>

    <div class="back-to-top">
      <i class="fa fa-arrow-up"></i>
    </div>
  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  



  
  <script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>

  
  <script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>

  
  <script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>

  
  <script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>

  
  <script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>

  
  <script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.0.2"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.0.2"></script>



  
  

  
  <script type="text/javascript" src="/js/src/scrollspy.js?v=5.0.2"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=5.0.2"></script>



  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.0.2"></script>



  

  
    
  

  <script type="text/javascript">
    var duoshuoQuery = {short_name:"Hiraku"};
    (function() {
      var ds = document.createElement('script');
      ds.type = 'text/javascript';ds.async = true;
      ds.id = 'duoshuo-script';
      ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
      ds.charset = 'UTF-8';
      (document.getElementsByTagName('head')[0]
      || document.getElementsByTagName('body')[0]).appendChild(ds);
    })();
  </script>

  
    
    <script src="/lib/ua-parser-js/dist/ua-parser.min.js?v=0.7.9"></script>
    <script src="/js/src/hook-duoshuo.js"></script>
  






  
  

  

  

  
  <script src="https://cdn1.lncld.net/static/js/av-core-mini-0.6.1.js"></script>
  <script>AV.initialize("PPmoIQxeu8Sd21h6Tl9TthNx-gzGzoHsz", "rTvbY2H7DvWzRipiBwn72RQ4");</script>
  <script>
    function showTime(Counter) {
      var query = new AV.Query(Counter);
      var entries = [];
      var $visitors = $(".leancloud_visitors");

      $visitors.each(function () {
        entries.push( $(this).attr("id").trim() );
      });

      query.containedIn('url', entries);
      query.find()
        .done(function (results) {
          var COUNT_CONTAINER_REF = '.leancloud-visitors-count';

          if (results.length === 0) {
            $visitors.find(COUNT_CONTAINER_REF).text(0);
            return;
          }

          for (var i = 0; i < results.length; i++) {
            var item = results[i];
            var url = item.get('url');
            var time = item.get('time');
            var element = document.getElementById(url);

            $(element).find(COUNT_CONTAINER_REF).text(time);
          }
          for(var i = 0; i < entries.length; i++) {
            var url = entries[i];
            var element = document.getElementById(url);
            var countSpan = $(element).find(COUNT_CONTAINER_REF);
            if( countSpan.text() == '') {
              countSpan.text(0);
            }
          }
        })
        .fail(function (object, error) {
          console.log("Error: " + error.code + " " + error.message);
        });
    }

    function addCount(Counter) {
      var $visitors = $(".leancloud_visitors");
      var url = $visitors.attr('id').trim();
      var title = $visitors.attr('data-flag-title').trim();
      var query = new AV.Query(Counter);

      query.equalTo("url", url);
      query.find({
        success: function(results) {
          if (results.length > 0) {
            var counter = results[0];
            counter.fetchWhenSave(true);
            counter.increment("time");
            counter.save(null, {
              success: function(counter) {
                var $element = $(document.getElementById(url));
                $element.find('.leancloud-visitors-count').text(counter.get('time'));
              },
              error: function(counter, error) {
                console.log('Failed to save Visitor num, with error message: ' + error.message);
              }
            });
          } else {
            var newcounter = new Counter();
            /* Set ACL */
            var acl = new AV.ACL();
            acl.setPublicReadAccess(true);
            acl.setPublicWriteAccess(true);
            newcounter.setACL(acl);
            /* End Set ACL */
            newcounter.set("title", title);
            newcounter.set("url", url);
            newcounter.set("time", 1);
            newcounter.save(null, {
              success: function(newcounter) {
                var $element = $(document.getElementById(url));
                $element.find('.leancloud-visitors-count').text(newcounter.get('time'));
              },
              error: function(newcounter, error) {
                console.log('Failed to create');
              }
            });
          }
        },
        error: function(error) {
          console.log('Error:' + error.code + " " + error.message);
        }
      });
    }

    $(function() {
      var Counter = AV.Object.extend("Counter");
      if ($('.leancloud_visitors').length == 1) {
        addCount(Counter);
      } else if ($('.post-title-link').length > 1) {
        showTime(Counter);
      }
    });
  </script>



  

  

  
  
  <!-- custom analytics part create by xiamo -->
<script src="https://cdn1.lncld.net/static/js/av-core-mini-0.6.1.js"></script>
<script>AV.initialize("PPmoIQxeu8Sd21h6Tl9TthNx-gzGzoHsz", "rTvbY2H7DvWzRipiBwn72RQ4");</script>
<script>
function showTime(Counter) {
  var query = new AV.Query(Counter);
  $(".leancloud_visitors").each(function() {
    var url = $(this).attr("id").trim();
    query.equalTo("url", url);
    query.find({
      success: function(results) {
        if (results.length == 0) {
          var content = '0 ' + $(document.getElementById(url)).text();
          $(document.getElementById(url)).text(content);
          return;
        }
        for (var i = 0; i < results.length; i++) {
          var object = results[i];
          var content = object.get('time') + ' ' + $(document.getElementById(url)).text();
          $(document.getElementById(url)).text(content);
        }
      },
      error: function(object, error) {
        console.log("Error: " + error.code + " " + error.message);
      }
    });

  });
}

function addCount(Counter) {
  var Counter = AV.Object.extend("Counter");
  url = $(".leancloud_visitors").attr('id').trim();
  title = $(".leancloud_visitors").attr('data-flag-title').trim();
  var query = new AV.Query(Counter);
  query.equalTo("url", url);
  query.find({
    success: function(results) {
      if (results.length > 0) {
        var counter = results[0];
        counter.fetchWhenSave(true);
        counter.increment("time");
        counter.save(null, {
          success: function(counter) {
            var content =  counter.get('time') + ' ' + $(document.getElementById(url)).text();
            $(document.getElementById(url)).text(content);
          },
          error: function(counter, error) {
            console.log('Failed to save Visitor num, with error message: ' + error.message);
          }
        });
      } else {
        var newcounter = new Counter();
        newcounter.set("title", title);
        newcounter.set("url", url);
        newcounter.set("time", 1);
        newcounter.save(null, {
          success: function(newcounter) {
              console.log("newcounter.get('time')="+newcounter.get('time'));
            var content = newcounter.get('time') + ' ' + $(document.getElementById(url)).text();
            $(document.getElementById(url)).text(content);
          },
          error: function(newcounter, error) {
            console.log('Failed to create');
          }
        });
      }
    },
    error: function(error) {
      console.log('Error:' + error.code + " " + error.message);
    }
  });
}
$(function() {
  var Counter = AV.Object.extend("Counter");
  if ($('.leancloud_visitors').length == 1) {
    addCount(Counter);
  } else if ($('.post-title-link').length > 1) {
    showTime(Counter);
  }
}); 
</script>

  
</body>
</html>
